import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
    //mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {path: '/', name: 'login', component: () => import( './views/login')},  // 登录
        {
            path: '/home',
            name: 'home',

            component: () => import( './views/home'),
            children: [
                {path: '/partsType', name: 'partsType', component: () => import( './views/system/partsType')},                       // 上传信息
                // {path: '/carList', name: 'carList', component: () => import( './views/car/carList')},                       // 车辆列表
                // {path:'/update/:id',name:'update',component:()=>import('./views/car/uploadCarInfo.vue')},//上传信息
                {path: '/partsInquiryList', name: 'partsInquiryList', component: () => import('./views/inquiry/partsInquiryList')},// 询价单列表
                {path: '/partsInquiryDetail', name: 'partsInquiryDetail', component: () => import('./views/inquiry/partsInquiryDetail')},// 配件报价信息
                {path: '/partsOrderList', name: 'partsOrderList', component: () => import('./views/inquiry/partsOrderList')},// 配件订单列表
                {path: '/partsOrderDetail', name: 'partsOrderDetail', component: () => import('./views/inquiry/partsOrderDetail')},// 配件订单列表
                {path: '/partsReturnList', name: 'partsReturnList', component: () => import('./views/inquiry/partsReturnList')},// 配件退货列表
                {path: '/partsReturnDetail', name: 'partsReturnDetail', component: () => import('./views/inquiry/partsReturnDetail')},// 配件退货详情
                {path: '/partsInfo', name: 'partsInfo', component: () => import('./views/system/infoManage')},//基本信息管理
                {path: '/partsAccount', name: 'partsAccount', component: () => import('./views/account/accountList')},//账号列表
                // {path:'/newOrderList',name:'newOrderList',component:()=>import('./views/order/newOrderList')},//新车订单列表
                // {path:'/newReturnList',name:'newReturnList',component:()=>import('./views/order/newReturnList')},//新车退货列表
                //
            ]
        },
    ]
})

